<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">

	<title>CON-020: Production Control System Summary[Selection]</title>
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./css/custom.css">

</head>
  
<body>
	<f:view>
		<f:loadBundle var="bundle" basename="com.tpc.control.message.ResourceBundle"/>
		<h:form id="con020Form">
			<h:outputText value="Production Control System Summary" styleClass="headerText"></h:outputText>	<br/>		
			<h:messages errorStyle="color: #FF0000; font-style: italic; font-weight: bold"/>
			<rich:panel style="width: 700px">
				<f:facet name="header">
					<h:outputText value="Selection Data" />
				</f:facet>
				<h:panelGrid columns="4">
					<h:outputText value="Company" />
					<h:inputText value="#{con020.companyFrom}" size="4" maxlength="4"/>
					<h:outputText value="to" />
					<h:inputText value="#{con020.companyTo}" size="4" maxlength="4"/>
					<h:outputText value="Division" />
					<h:inputText value="#{con020.divisionFrom}" size="2" maxlength="2"/>
					<h:outputText value="to" />
					<h:inputText value="#{con020.divisionTo}" size="2" maxlength="2"/>
					<h:outputText value="Customer No." />
					<h:inputText value="#{con020.customerFrom}" size="10" maxlength="10" />
					<h:outputText value="to" />
					<h:inputText value="#{con020.customerTo}" size="10" maxlength="10"/>
					<h:outputText value="Customer PO" />
					<h:inputText value="#{con020.customerPoFrom}" maxlength="35"/>
					<h:outputText value="to" />
					<h:inputText value="#{con020.customerPoTo}" maxlength="35"/>
					<h:outputText value="Sale Order No." />
					<h:inputText value="#{con020.saleOrderFrom}" size="10" maxlength="10"/>
					<h:outputText value="to" />
					<h:inputText value="#{con020.saleOrderTo}" size="10" maxlength="10"/>
					<h:outputText value="Sales Due-date" />
					<rich:calendar value="#{con020.saleDueDateFrom}" 
						datePattern="dd.MM.yyyy" locale="th_US" />
					<h:outputText value="to" />
					<rich:calendar value="#{con020.saleDueDateTo}" 
						datePattern="dd.MM.yyyy" locale="th_US" />
					<h:outputText value="End User Code" />
					<h:inputText value="#{con020.endUser}" maxlength="25"/>
				</h:panelGrid>
			</rich:panel>	
			<h:commandButton action="#{con020.showReport}" value="Show Report" />
		</h:form>
	</f:view>
</body>
</html>